package com.awaken.content.models.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@TableName("`order`")
public class Order {
    
    @TableId(type = IdType.AUTO)
    private Long id;
    
    private String orderNo;
    
    private Long userId;
    
    private BigDecimal totalAmount;
    
    private Integer status; // 1-待支付，2-已支付，3-已发货，4-已完成，5-已取消
    
    private String shippingAddress;
    
    private String receiverName;
    
    private String receiverPhone;
    
    private String paymentMethod;
    
    private LocalDateTime payTime;
    
    private LocalDateTime shipTime;
    
    private LocalDateTime completeTime;
    
    private String remark;
    
    private LocalDateTime createTime;
    
    private LocalDateTime updateTime;
} 